<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="main.html" method="post" th:action="@{/login}">
    <label th:text="${msg}"></label><br/>
    用户名:<input type="text" name="userName" /><br/>
    邮箱:<input type="text" name="password" /><br/>
    <input type="submit" name="提交" />
</form>
</body>
</html>